package com.acme;

public abstract class AbstractAccount implements Account{

	protected int id;
	protected double balance;

	public AbstractAccount(double amount) {
		this.balance = ((amount >=0) ? amount : 0);
	}

	public double getBalance() {
		return balance;
	}

	@Override
	public void deposit(double amount) {
		if(amount >= 0) {
			this.balance += amount;
		} else {
			System.out.println("You can't deposite negative amount!");
		}
	}

	public abstract void withdraw(double amount);
	
	public abstract double maximumAmountToWithdraw();

}
